package com.home.zus;

import org.primefaces.model.DefaultTreeNode;
import org.primefaces.model.TreeNode;

public class HomePageBean {
   private TreeNode folderStructure;
   
   public HomePageBean()
   {
      folderStructure = new DefaultTreeNode();
      for (int i=0; i < 3; i++)
      {
         TreeNode node = new DefaultTreeNode("Node_"+i, folderStructure);
         for(int y=0; y < 4; y++)
         {
            TreeNode nestedNode = new DefaultTreeNode("Node_"+i+" "+y, node);
         }
      }
   }
   /**
    * @return the folderStructure
    */
   public TreeNode getFolderStructure() {
      return folderStructure;
   }
}
